home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 60.zip / BS1 part 60 / Gods Utils 16.adf / AreaCodeV1.24.doc.pp / AreaCodeV1.24.doc
Text File  |  1993-04-18  |  5KB  |  162 lines

  1.  
  2.                    /* DOS1:src2/AreaCode.c (c)1992 Bill Beogelein */
  3.  
  4. #define VERSION "$VER: AreaCode v1.24 (" __DATE__ ")"
  5. #define USAGE "\n %s \n Usage:  %s [-prompt -stderr -help] ### | state [### | ST ...]\n ?=wildcard\n", VERSION+6, argv[0]
  6.  
  7.   /*
  8.    *  Usage #1:
  9.    *     Pass United States, Canada, or Mexico area code,
  10.    *     returns geographic location.
  11.    *
  12.    *   Usage #2:
  13.    *     Pass 2 letter state name, returns all area codes used in that state.
  14.    *     Supports '?' wildcard to match any single character.
  15.    *
  16.    *  You can prompt the user for input with the '-p' option.
  17.    *  AreaCode -p                   (Prompt for areacodes until user hits RETURN)
  18.    *  AreaCode -p 000               (Prompt for 1 areacode then exit)
  19.    *  AreaCode -p 000 000           (Prompt for 2)
  20.    *  AreaCode -p 000 000 000       (Prompt for 3)
  21.    *  AreaCode -p a b c d           (Prompt for 4)
  22.    *  AreaCode -p dummy dummy dummy (Prompt for 3)
  23.    *
  24.    *  AreaCode -s 313         (Do NOT pipe stderr into stdout.)
  25.    *  AreaCode -h             (Show HELP screen & copyright notice.)
  26.    *
  27.    *  The Amiga ShareWare HeadQuarters BBS
  28.    *  Bill Beogelein
  29.    *  Box 530441
  30.    *  Livonia, MI 48153 USA
  31.    *  313-473-2020 BBS, 2-lines, USR HST-DS 14.4k, Fido 1:2410/207
  32.    *  File Requ' magic-name AREACODE for latest publicly distributable release.
  33.    *  Please pay shareware fees to keep 3rd party Xenolink software coming.
  34.    *
  35.    *  Future plans:
  36.    *     Needs: time zones.
  37.    *     Needs: full state names <-> state abbr <-> areacodes lookups.
  38.    *     Needs: international +codes.
  39.    *     Needs: Parts of 415 changed to 510 as of 02Sep91.
  40.    *     Needs: Sort areacodes within each state.
  41.    *     Needs: Sort city names within each state.
  42.    *     Needs: Make PURE/RESIDENT
  43.    *     Needs: Areacodes 909 917 when usage starts.
  44.    *     Needs: At least 3 cities for each areacode.
  45.    *     Needs: 810 when 313 splits on Aug 10, 1994.
  46.    *     Needs: Compressed data.
  47.    *
  48.    *  xxx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
  49.    *
  50.    *  History:
  51.    *
  52.    *  v1.24 Monday 14-Dec-92 05:33:37
  53.    *     Recompiled with SAS v6.1 instead of v6.0.
  54.    *     'Searches' also show state abbrv.
  55.    *     "VA-Viginia, 804, 703" added missing "R"
  56.    *     Newfoundland is 1 work, NOT 2.
  57.    *     Added Jamaica.
  58.    *     Added more 313/517/906 cities.
  59.    *     Added 819,204,306,403,506 to "CN-Canada" list.
  60.    *     Compile-date added to $VER: string.
  61.    *
  62.    *  v1.23 Saturday 14-Nov-92 20:59:59
  63.    *     Recompiled with SAS v6.0 instead of Aztec.
  64.    *     Used WB2.0 headers.
  65.    *     Added -prompt option which asks user for input.
  66.    *     All stderr is now piped into stdout (for Cnet-BBS usage).
  67.    *     Added -stderr option which overrides the above.
  68.    *     Added -help option.
  69.    *     Returns OK, WARN, ERROR, FAIL for correct DOS script use.
  70.    *     Added areacode 706.
  71.    *
  72.    *  v1.22 Sunday 22-Mar-92 03:52:42
  73.    *     Added WB2.04 "$VER:" support.
  74.    *     (You can now find the version # by using "c:Version AreaCode")
  75.    *     Recompiled w/Aztec 5.2a instead of v5.0b
  76.    *
  77.    *     Major cities that changed to 310 (November 2nd, 1991):
  78.    *     Long Beach, Downey, Whittier, Norwalk, Lakewood, Redondo Beach, San Pedro,
  79.    *     Gardena, El Segundo, Santa Monica, Century City, Malibu....
  80.    *
  81.    *     Central Los Angeles, and Hollywood are staying at 213!
  82.    *
  83.    *     510 Berkeley, CA
  84.    *     309 is IL but wasn't listed under AC IL
  85.    *     410 Annapolis, MD (new)
  86.    *
  87.    *  v1.21 Friday 19-Jul-91 00:17:49
  88.    *     Added 719 Colorado Springs, CO
  89.    *     Fixed 303, no longer "all of CO"
  90.    *
  91.    *  v1.20 Tuesday 25-Jun-91 19:30:35
  92.    *     Added 407 Orlando, FL
  93.    *
  94.    *  v1.19 Wednesday 29-Aug-90 20:37:14
  95.    *     Added 908 NJ
  96.    *     From: static BYTE *ac2st[207]={
  97.    *       To: static BYTE *ac2st[]={
  98.    *     Re-compiled w/Aztec v5.0b instead of v3.6
  99.    *     Made to compile w/32 ints instead of 16 ints
  100.    *     exit() returns a LONG
  101.    *     No need to -z6300 for extra space
  102.    *     Re-packed w/LHarc instead of ARC
  103.    *
  104.    *  v1.18 02-Mar-90
  105.    *     Added 508 to state Mass.
  106.    *     Must "comp DOS1:src2/AreaCode.c -dBB -z6300" for extra string space.
  107.    *
  108.    *  v1.17 15-Jan-90
  109.    *     Fixed FL spelling
  110.    *     Fixed FL ac 804-->904
  111.    *
  112.    *  v1.16 01-Jan-90
  113.    *     Added 310 for Feb92 start-up
  114.    *     Upper/lower case errors fixed
  115.    *
  116.    *  v1.15 02-Nov-89
  117.    *     Added more cities to 708 312 815
  118.    *
  119.    *  v1.14 24-Oct-89
  120.    *     Correctly all case
  121.    *     ac2st[] not terminated with 0
  122.    *     Crash if "1> AreaCode ???", fixed
  123.    *
  124.    *  v1.13 04-Oct-89
  125.    *     Added 708
  126.    *     Added 408 to CA list
  127.    *     SECRET removed
  128.    *
  129.    *  v1.12 18-Jul-89
  130.    *     Added 508
  131.    *
  132.    *  v1.11 09-Mar-89
  133.    *     Added 407, 409, 819
  134.    *     Added Sharewarer's BBS #
  135.    *
  136.    *  v1.10 06-Feb-89
  137.    *     Removed dup ac 212 NY
  138.    *     String array now has 201 elements
  139.    *
  140.    *  v1.9  20-Nov-87
  141.    *     Added 10 Canadian province abbr
  142.    *
  143.    *  v1.8  01-Nov-87
  144.    *     Added state->AreaCode conversion
  145.    *
  146.    *  v1.7  07-Jul-87
  147.    *     Supports '?' as 1 char wildcard
  148.    *     Moved zipcodes/cities from switch/case into large array
  149.    *     (made about 1K smaller)
  150.    *     exit(SUCCESS/FAIL);
  151.    *     Added beep()
  152.    *     Sorted areacodes.
  153.    *     Added ac 800/900
  154.    *
  155.    *  v1.6  03-Jun-87
  156.    *     added Canada cities
  157.    *     added 718 NY
  158.    *     added 818
  159.    *
  160.    * *** EOF AreaCode.doc 313-473-2020 BBS ***/
  161.    
  162.